//
//  BodiButton.m
//  UI02_HomeWork_01
//
//  Created by Bodi on 16/6/6.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "BodiButton.h"

@implementation BodiButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
+(instancetype)buttonWithType:(UIButtonType)buttonType withFrame:(CGRect)frame
                    withTitle:(NSString *)title{

    BodiButton *button = [BodiButton buttonWithType:UIButtonTypeSystem];
    button.frame = frame;
    [button setTitle:title forState:UIControlStateNormal];
    
    return button;

}

@end
